﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace SHomeWorkshop.LunarPresentation.Converts
{
    [ValueConversion(typeof(double), typeof(System.Windows.Thickness))]
    public class BaseTextCommentIndentConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return new System.Windows.Thickness((double)value * 2, 0, 0, 0);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }

        #endregion
    }
}
